package com.java2104.controller;


import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

//如果当前控制器中所有的请求处理方法都是返回JSON格式，可以使用 @RestController就可以省略方法前的@ResponseBody
@RestController
public class DemoController implements Controller {

    @RequestMapping("/a")
    //@ResponseBody
    @Override
    public ModelAndView handleRequest(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws Exception {
        return null;
    }

    @RequestMapping("/b")
    //@ResponseBody
    public String b() {
        return null;
    }

    @RequestMapping("/c")
    //@ResponseBody
    public String c() {
        return null;
    }
}
